//
//  InforCell.m
//  Pacific_Computer
//
//  Created by 范琦 on 14-12-17.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "InforCell.h"

@implementation InforCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imagev = [[UIImageView alloc]init];
        [self.contentView addSubview:self.imagev];
        [_imagev release];
        
        self.mainLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.mainLabel];
        [_mainLabel release];
        
        self.time = [[UILabel alloc]init];
        [self.contentView addSubview:self.time];
        [_time release];
        
        self.count = [[UILabel alloc]init];
        [self.contentView addSubview:self.count];
        [_count release];
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.imagev.frame = CGRectMake(10, 10, self.contentView.bounds.size.width * 1 / 3, 80);
    
    self.mainLabel.frame = CGRectMake(self.contentView.bounds.size.width * 1 / 3 + 20, 10,self.contentView.bounds.size.width * 2 / 3 - 20, 50);
    
    self.time.frame = CGRectMake(self.contentView.bounds.size.width * 1 / 3 + 20, 70, 100, 20);
    
    self.count.frame = CGRectMake(self.contentView.bounds.size.width * 4 / 5, 70, 100, 20);

}

- (void)dealloc
{
    [_imagev release];
    [_mainLabel release];
    [_time release];
    [_count release];
    [super dealloc];
}





- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
